home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / byte0787.arc / IWPAS.ARC / EDGE.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1987-04-28  |  1.1 KB  |  40 lines

  1. PROGRAM Edge2(input,output,picfile);
  2.  
  3. { Copyright (c) 1987, Ciarcia's Circuit Cellar          }
  4. {    All Rights Reserved                                }
  5.  
  6. {$U- control-break checking during execution            }
  7. {$C- control-break checking during I/O operations       }
  8. {$R- array range checking                               }
  9.  
  10. {$Ideclares.p                   declarations            }
  11. {$Ihexutil.p                    hex utilities           }
  12. {$Iserial.p                     serial interface code   }
  13. {$Ipictures.p                   picture file code       }
  14. {$Iimages.p                     image processing        }
  15.  
  16. BEGIN
  17.  
  18.  LowVideo;
  19.  
  20.  pic1 := NIL;                   { ensure new alloc      }
  21.  PicSetup(pic1);                { set up picture array  }
  22.  
  23.  filespec := GetFSpec(ParamStr(1));
  24.  
  25.  LoadPicture(filespec,pic1);
  26.  
  27.  pic2 := NIL;                   { get output array      }
  28.  PicSetup(pic2);
  29.  SetSyncs(pic2);
  30.  
  31.  Writeln('Locating edges...');
  32.  Edge(pic1,pic2);
  33.  
  34.  IF ParamStr(2) <> ''
  35.   THEN filespec := ParamStr(2);
  36.  
  37.  SavePicture(filespec,pic2);
  38.  
  39. END.
  40.